package com.ayic.garbagerecycle.mapper;

import com.ayic.garbagerecycle.pojo.WasteType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface WasteTypeMapper {
    @Select("SELECT waste_type_id as wasteTypeId FROM waste_types WHERE waste_type_name like CONCAT('%', #{wasteTypeName}, '%')")
    WasteType getWasteTypeByName(String wasteTypeName);
}